package com.it.base.core.system.dict.model.from;

import java.io.Serializable;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class SysDictTypeUpdateFormDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	@NotNull(message = "主键必填")
	@NotBlank(message = "主键必填")
	private String id;

	/**
	 * 名称
	 */
	@NotBlank(message = "名称必填")
	private String name;

	/**
	 * 备注
	 */
	private String remark;

	/**
	 * 类型
	 */
	@NotBlank(message = "类型必填")
	private String type;

	/**
	 * 状态
	 */
	@ApiModelProperty(name = "status", value = "状态", dataType = "String", required = true)
	@Min(message = "状态值只能为-1或0", value = -1)
	@Max(message = "状态值只能为-1或0", value = 0)
	private Integer status;

}
